<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link href="../app/bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
</head>
<body ng-controller="AppController" abc>


<script src="../app/bower_components/jquery/dist/jquery.js"></script>
<script src="../app/bower_components/angular/angular.js"></script>

<script>
    var app = angular.module('app', []);
    app.controller('AppController', function ($scope) {
        console.log(2);
    });
    app.directive('abc', function () {
        return {
            restrict: 'ACE',
            priority: 400,
            controller: function () {

                console.log(1);
            },
            link: function (scope, element, attrs) {
            }
        }
    });

</script>
</body>
</html>